﻿using EkStudio.com.bean.xml.reflection;
using System.Collections.Generic;


namespace EkStudio.com.bean.xml.ProjectVersion
{
    public class ProjectDBSource
    {

        private int _minConn = 5;//秒
        private int _maxConn = 20;
        private int _maxWaitTime = 60;
        private int _maxRefNum = 30;
        private bool _debug = false;//是否显示异常信息
        private List<ProjectDBSourceElement> _item;

        [Xml("minConn")]
        public int MinConn
        {
            get
            {
                return _minConn;
            }

            set
            {
                _minConn = value;
            }
        }
        [Xml("maxConn")]
        public int MaxConn
        {
            get
            {
                return _maxConn;
            }

            set
            {
                _maxConn = value;
            }
        }
        [Xml("maxWaitTime")]
        public int MaxWaitTime
        {
            get
            {
                return _maxWaitTime;
            }

            set
            {
                _maxWaitTime = value;
            }
        }
        [Xml("maxRefNum")]
        public int MaxRefNum
        {
            get
            {
                return _maxRefNum;
            }

            set
            {
                _maxRefNum = value;
            }
        }
        [Xml("debug")]
        public bool Debug
        {
            get
            {
                return _debug;
            }

            set
            {
                _debug = value;
            }
        }
        [XmlElement("dbSource")]
        public List<ProjectDBSourceElement> Item
        {
            get
            {
                return _item;
            }

            set
            {
                _item = value;
            }
        }
    }
}
